
/* includes */

#include "neos_vx_win.h"
int snmp_demo = 0;
char demo=0;
unsigned long *oid;
char *value2;
buf *test;
int shuju=0;
char str[]="hello";
//extern void socket_client_tcp(char *strText);
//extern int socket_client_udp(char *strText);

STATUS jilian_demo_get( UINT32* value)
{
	*value = snmp_demo;	
	return (SNMP_OK);

}

STATUS jilian_demo_set(UINT32 * value)
{
//	socket_client_udp(value);
//	socket_client_tcp(value);
//	OnDataBase();
	snmp_demo = *value;
//	DataBase();
	//QueryDataBase();
	return (SNMP_OK);

}

STATUS jilian_get( char*value1,UINT32 *value)
{
	
	*value = get_DataBase(value1);	
	return (SNMP_OK);

}

STATUS jilian_set(char*value1,UINT32 *value)
{
	char *receive;
	char temp1[64];
	unsigned char i=0,j=0;
//	update_DataBase(value1,value);
	memset(temp1,0,64);
	shuju=*value;
#if 0
	if (*value==1)
	{
		snmp_demo=1;
	}
	else
	{
		snmp_demo=0;	
	}
#endif	
	test=QueryDataBase(value1,value);
	receive=test->buffer;
	i=test->len;
	while(i--)
	{
		temp1[j++]=*(receive++);
	};
	socket_client_udp(value1,temp1);
//	socket_client_tcp(value);
	return (SNMP_OK); 

}
